import {doGet} from "@/net/axios-request.ts";
import {userTokenHeader} from "@/utils/auth-utils.ts";

export interface Notification {
    id: number,
    userId: number,
    content: string,
    createdAt: number
}

export async function getUserNotifications() {
    return (await doGet<Notification[]>("/api/notification/user", {...userTokenHeader()}, {})).data
}